<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!-- 轮播图 -->
    <jsp:include page="../include/meta.jsp">
        <jsp:param name="pageTitle" value="机构信息"/>
    </jsp:include>
</head>
<body>

<div id="wrapper">
    <jsp:include page="../include/head.jsp">
        <jsp:param name="menuIdx" value="5"/>
    </jsp:include>
    <div class="clearfloat"></div>

    <!-- 机构信息页banner -->
    <div class="news_banner">
        <img src="${base}/images/banner_0301.jpg" alt="新闻公告Banner"/>
    </div>
    <!-- 机构信息页banner结束 -->
    <!-- 内容区域 -->
    <div class="container">

        <div class="main" style="margin:50px auto;">
            <h3>公告新闻</h3><br/>
            <c:forEach items="${list}" var="bean">
                <div class="news_main">
                    <div class="news_type">
                        <c:if test="${bean.type==0}">
                            【新闻】
                        </c:if>
                        <c:if test="${bean.type==1}">
                            【公告】
                        </c:if>
                        <c:if test="${bean.type==2}">
                            【活动】
                        </c:if>
                    </div>
                    <div class="news_name"><a href="${base}/news/detail?id=${bean.id}">${bean.title}</a></div>
                    <div class="news_type">${bean.sourceFrom}</div>
                    <div class="news_type">${bean.author}</div>
                    <div class="news_date"><script>formatDate('${bean.dateline}');</script></div>
                </div>
            </c:forEach>
            <div class="pages" id="pager"></div>
            <script type="text/javascript">
                var sign = 0;
                window.onload = function () {
                    PAGER.initPager('${pageNo}', '${total}', '20', 8, 'pager', getData);
                }
                function getData(currentPage, pageSize) {
                    if (sign > 0) {
                        window.location.href="${base}/news/index?pageNo="+currentPage;
                    }
                    sign = 1;
                }
            </script>
        </div>
    </div>
    <!-- 内容区域结束 -->
    <jsp:include page="../include/foot.jsp"/>
</div>
</body>
</html>
